#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.63])
AC_INIT([learnmail], [0.1], [root@localhost])
AC_CONFIG_SRCDIR([src/libzc/mpool.c])
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC

AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h syslog.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero gethostbyname memmove memset select socket strchr strdup])

AC_CONFIG_FILES([Makefile
                 src/Makefile
                 src/imap-login/Makefile
                 src/imap/Makefile
                 src/libzc/Makefile
                 src/master/Makefile
                 src/pop-login/Makefile
                 src/pop/Makefile])
AC_OUTPUT
